//这里修改游戏图片的根路径
const imgurl = "/img/"
//player
const playerImg = new Image();
playerImg.src = imgurl+'player.png'
//子弹图片
const bulletImg = new Image();
bulletImg.src = imgurl+"bullet.png"
//敌人子弹
const enemyBulletImg = new Image();
enemyBulletImg.src = imgurl+'enemyBullet.png'

//Enemy01图片
const enemy01Body = new Image();

enemy01Body.src = imgurl+"meteorite.png"

//Enemy02动画
const enemy02Body = new Image();
enemy02Body.src = imgurl+'enemy02.png'
const enemy02Body02 = new Image();
enemy02Body02.src = imgurl+"enemy02(2).png"

//Enemy03动画
const enemy03Body = new Image();
enemy03Body.src = imgurl+"enemy03.png"

//boo动画
const boo = []
for(let i=1;i<=5;i++){
    let img = new Image()
    img.src = imgurl+`boo/Boo${i}.png`
    boo.push(img)
}

//fireProp图片
const firePropImg = new Image()
firePropImg.src = imgurl+"f.png"

//hpProp图片
const hpPropImg = new Image()
hpPropImg.src = imgurl+'love.png'

export {
    playerImg,
    bulletImg,
    enemyBulletImg,
    enemy01Body,
    boo,
    enemy02Body,
    enemy02Body02,
    enemy03Body,
    firePropImg,
    hpPropImg
}